import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useOrderStore = defineStore('order', () => {
  const orderStatus = ref([
    {
      label: '全部',
      code: 0,
    },
    {
      label: '初始化',
      code: 1,
    },
    {
      label: '审核中',
      code: 2,
    },
    {
      label: '审核拒绝',
      code: 3,
    },
    {
      label: '待支付',
      code: 4,
    },
    {
      label: '待发货',
      code: 5,
    },
    {
      label: '待收货',
      code: 6,
    },
    {
      label: '租赁中',
      code: 7,
    },
    {
      label: '逾期',
      code: 8,
    },
    {
      label: '已完结',
      code: 9,
    },
    {
      label: '已买断',
      code: 10,
    },
    {
      label: '已取消',
      code: 11,
    },
    {
      label: '归还中',
      code: 12,
    },
    {
      label: '已归还',
      code: 13,
    },
  ])

  return {
    orderStatus,
  }
})
